import Vue from 'vue'
import App from './App.vue'
import router from './router'
import Vconsole from 'vconsole';
//const vConsole = new Vconsole()
//Vue.use(vConsole)
import {
  isEmptyData,
  dateFormat,
  provinceConversion
} from "./utils"

import {
  Col,
  Row,
  Uploader,
  List,
  Empty,
  Pagination,
  Field,
  Loading,
  DropdownMenu,
  DropdownItem,
  Button,
  NavBar,
  ActionSheet,
  Search,
  Cell,
  Switch,
  DatetimePicker,
  Popup,
  Icon
} from 'vant'
import 'vant/lib/index.css'
// 样式重置文件
import './assets/styles/normalize.less'
// 引入icon图标
import './assets/icon/iconfont.css'
import 'lib-flexible'
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';

Vue.use(ElementUI);
Vue.use(Icon)
Vue.use(Col)
Vue.use(Row)
Vue.use(Uploader)
Vue.use(List)
Vue.use(Empty)
Vue.use(Pagination)
Vue.use(Field)
Vue.use(Loading)
Vue.use(DropdownMenu)
Vue.use(DropdownItem)
Vue.use(Button)
Vue.use(NavBar)
Vue.use(ActionSheet)
Vue.use(Search)
Vue.use(Cell)
Vue.use(Switch)
Vue.use(DatetimePicker)
Vue.use(Popup)
Vue.config.productionTip = false

//注册全局过滤方法
Vue.filter("provinceConversion", provinceConversion)
Vue.filter("isEmptyData", isEmptyData)
Vue.filter("dateFormat", dateFormat)

new Vue({
  router,
  render: h => h(App)
}).$mount('#app')
